package com.xz.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xz.db.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author pzy
 * @since 2023-11-01
 */
@Getter
@Setter
@TableName("xz_book")
@ApiModel(value = "XzBook对象", description = "")
public class XzBook extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章名称")
    private String name;

    @ApiModelProperty("文章创建时间")
    private LocalDateTime time;

    @ApiModelProperty("阅读数")
    private int num;

    @ApiModelProperty("文章内容")
    private String textContent;

    @ApiModelProperty("文章头部图片")
    private String imgUrl;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;


}
